﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Packing.PackingCategoryConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.Packing.PackingCategoryConfig
{
    /// <summary>
    /// 包装材料分类配置
    /// </summary>
    public interface IPackingCategoryConfigService
    {
        /// <summary>
        /// 添加包装材料分类配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="requestDto">包装材料分类信息</param>
        /// <returns></returns>
        PackingCategoryConfigDto Create(AdminDto admin, PackingCategoryConfigRequestDto requestDto);

        /// <summary>
        /// 修改包装材料分类配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="packingCategoryConfigId">包装材料分类配置Id</param>
        /// <param name="requestDto">包装材料分类信息</param>
        /// <returns></returns>
        PackingCategoryConfigDto Update(AdminDto admin, int packingCategoryConfigId, PackingCategoryConfigRequestDto requestDto);

        /// <summary>
        /// 删除包装材料分类配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="packingCategoryConfigId">包装材料分类配置Id</param>
        void Delete(AdminDto admin, int packingCategoryConfigId);

        /// <summary>
        /// 获取包装材料分类配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="packingCategory">包装材料分类</param>
        /// <param name="createStartDate">创建开始日期</param>
        /// <param name="createEndDate">创建结束日期</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<PackingCategoryConfigDto> Query(AdminDto admin, string packingCategory, DateTime? createStartDate, DateTime? createEndDate, int pageIndex, int pageSize);

        /// <summary>
        /// 获取包装材料分类配置列表
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <returns></returns>
        IEnumerable<PackingCategoryConfigDto> List(AdminDto admin);
    }
}
